const list1=['2022','7','28']
const results=list1.join('-')
console.log(results)  //2022-7-28
console.log(list1)  //[ '2022', '7', '28' ]